package com.daz.gradle.annotationprocess;

import org.gradle.api.Action;
import org.gradle.api.NamedDomainObjectContainer;
import org.gradle.api.Project;

public class PreCompileAnnotationProcessPluginExtension {

    public PreCompileAnnotationProcessPluginExtension(Project project) {
        this.processes = project.container(PreCompileAnnotationProcessDeclaration.class);
    }

    public NamedDomainObjectContainer<PreCompileAnnotationProcessDeclaration> getProcesses() {
        return processes;
    }

    public void processes(Action<? super NamedDomainObjectContainer<PreCompileAnnotationProcessDeclaration>> action) {
        action.execute(processes);
    }


    private NamedDomainObjectContainer<PreCompileAnnotationProcessDeclaration> processes;
}
